package org.jeecg.modules.flow.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.flow.entity.ActHiActInstance;
import org.jeecg.modules.flow.vo.HistoryActivityInstanceVo;

/**
 * @Description: hi_actinst
 * @Author: zzq
 * @Date: 2021-12-29
 * @Version: V1.0
 */
public interface ActHiActInstanceMapper extends BaseMapper<ActHiActInstance> {

    /**
     * 获取流程历史活动轨迹
     *
     * @param wrapper
     * @param businessKey 如果不为空则根据业务号来获取
     * @param page
     * @return
     */
    Page<HistoryActivityInstanceVo> queryHistoricActivityInstance(@Param(Constants.WRAPPER) Wrapper<ActHiActInstance> wrapper, @Param("businessKey") String businessKey, Page<HistoryActivityInstanceVo> page);

}
